public class B extends A{
    public B() {
        System.out.println("子类构造方法");
    }
    static {
        System.out.println("子类静态代码块");
    }

    public static void main(String[] args) {
        B b = new B();
        //System.out.println(a.name);
    }
}
